home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 3.iso / dist / fw_qt3.idb / usr / freeware / Qt / examples / demo / opengl / glbox.h.z / glbox.h
Encoding:
C/C++ Source or Header  |  2002-04-08  |  1.0 KB  |  45 lines

  1. /****************************************************************************
  2. ** $Id:  qt/glbox.h   3.0.3   edited Oct 12 12:18 $
  3. **
  4. ** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
  5. **
  6. ** This file is part of an example program for Qt.  This example
  7. ** program may be used, distributed and modified without limitation.
  8. **
  9. *****************************************************************************/
  10.  
  11. /****************************************************************************
  12. **
  13. ** This is a simple QGLWidget displaying an openGL wireframe box
  14. **
  15. ****************************************************************************/
  16.  
  17. #ifndef GLBOX_H
  18. #define GLBOX_H
  19.  
  20. #include "glcontrolwidget.h"
  21.  
  22. class GLBox : public GLControlWidget
  23. {
  24.     Q_OBJECT
  25.  
  26. public:
  27.  
  28.     GLBox( QWidget* parent = 0, const char* name = 0, WFlags f = 0 );
  29.     ~GLBox();
  30.  
  31. protected:
  32.  
  33.     void        initializeGL();
  34.     void        paintGL();
  35.     void        resizeGL( int w, int h );
  36.  
  37.     virtual GLuint     makeObject();
  38.  
  39. private:
  40.     GLuint object;
  41. };
  42.  
  43.  
  44. #endif // GLBOX_H
  45.